<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.outer {
  width:600px;
  height:200px;
  border:1px solid gray;
  background:#eee;
  font-size:0px;
}
.test1 {
  display:inline-block;
  position:relative;
  top:100px;
  left:300px;
  border:10px solid green;
  width:80px;
  height:30px;
}
.test2 {
  display:inline-block;
  position:relative;
  top:0px;
  left:250px;
  border:10px solid blue;
  width:80px;
  height:30px;
}
.test3 {
  display:inline-block;
  position:relative;
  top:20px;
  left:230px;
  border:10px solid yellow;
  width:80px;
  height:30px;
}
</style>
</head>

<body>

<div class="outer">

<div class="test3">
</div>

<div class="test2">
</div>

<div class="test1">
</div>

</div>

</body>
</html>
